
    <!-- Title area -->
    <div class="titleArea">
        <div class="wrapper">
            <div class="pageTitle">
                <h1><img src="<?php echo base_url()?>application/views/images/icons/control/32/document-library.png" />&nbsp;&nbsp;Slide Show List</h1>
            </div>
            <div class="horControlB">
            	<ul>
                	<li><a href="<?php echo site_url()?>/c_slide/page_new" title=""><img src="<?php echo base_url()?>application/views/images/icons/control/16/plus.png" alt="" /><span>Add new</span></a></li>
                </ul>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="line"></div>
    
    <!-- Main content wrapper -->
    <div class="wrapper">
       	                           
			<div class="body">
              <div class="widget" style="margin-top:0 !important;">
              	  <div class="title"><img src="images/icons/dark/full2.png" alt="" class="titleIcon" /><h6>Slide show</h6></div>
                  <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
                      <thead>
                          <tr>
                              <td width="3%">N&ordm;</th>
                              <td width="20%">Name</th>
                              <td>Image</th>
                              <td width="10%">Option</th>
                          </tr>
                      </thead>
                      <tbody>
                      <?php
                         if(sizeof($slides)>0):
						 	$i = 1;
                             foreach($slides as $slide):
                              ?>
                                  <tr>
                                  	  <td><?php echo $i;?></td>
                                      <td><?php echo $slide['name']?></td>
                                      <td><img src="<?php echo base_url()?>/upload/slides/<?php echo $slide['image']?>"  align="<?php echo $slide['image']?>" height="77" width="620"/></td>
                                      <td>
                                      	  <a rel="" href="<?php echo site_url()?>/c_slide/page_edit/<?php echo $this->m_impact->encrypt_decrypt('encrypt',$slide['id'])?>" class="smallButton edit" title="Edit slide"><img src="<?php echo base_url()?>application/views/images/icons/color/pencil.png" alt="Edit" /></a>
                                          |
                                          <a rel="<?php echo $this->m_impact->encrypt_decrypt('encrypt',$slide['id'])?>/<?php echo $slide['image']?>" href="" class="smallButton remove_list" title="Remove slide"><img src="<?php echo base_url()?>application/views/images/icons/color/minus-circle.png" alt="Remove" /></a>
                                      </td>
                                  </tr>
                              <?php
							  $i++;
                             endforeach;
                         endif;
                      ?>                    
                      </tbody>
                  </table>
              </div>
          </div>
    </div><!-- end wraper-->
    <script type="text/javascript">
		$('.remove_list').click(function ()
		{
			var id =  $(this).attr('rel');
			var yesno = confirm("Are you sure want to remove?");
			if (yesno == true)
				window.location = "<?php echo site_url()?>/c_slide/delete/"+id;	
			
			return false;
		});
		
		
	</script>